package com.hqyj.finance.server.bill.financebill.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;

@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("user_expense")
@Table(name="user_expense")
public class UserExpenses extends BaseEntity {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @TableId(type = IdType.AUTO)
    /**
    * 主键
    */
    private Integer expensesId;
    /**
    * 支出时间
    */
    private String expensesTime;
    /**
    * 支出金额
    */
    private String expensesNum;
    /**
    * 支出分类
    */
    private String expensesSort;
    /**
    * 支出备注
    */
    private String expensesRemark;
    /**
    * 支出人id
    */
    private Integer expensesUserId;
    /**
    * 支出人
    */
    private String expensesUser;

    //借款凭证，图片地址。
    private String  voucherUrl;


}